#include<iostream>
#include"EquationSolver.h"
#include<cmath>
#include<limits>

double Function::operator()(double _x)
{
  return (_x - tan(_x));
}

double Function::diff(double _x)
{
  return (1-1/(cos(_x)*cos(_x))) ;
}

int main(){
  Function f;
  Newton New( 7.7, 10000, f);
  New.solve();
  return 0;
}
